package com.andrew.study.context;

import com.andrew.study.domain.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class ContextTest {

	public static void main(String[] args) {
		ApplicationContext xmlApplicationContext = new ClassPathXmlApplicationContext("${classpath:application.xml}");
		User user = xmlApplicationContext.getBean(User.class);
		System.out.println(user);
	}

}
